package com.itlong.cloud.service;

import com.itlong.cloud.enumerate.ecode.AppErrorCodeEnum;
import com.itlong.cloud.enumerate.oldapp.Code;

/**
* <desc>
*      mina业务处理接口
* </desc>
*
* @createDate 2017/12/07
*/
public interface IMinaService {
    /**
     * <desc>
     *      发送消息到客户端
     * </desc>
     *
     * @param key
     * @param message 发送的消息
     * @return
     * @author Jiaqi.X
     * @createDate 2017/12/07
     */
     AppErrorCodeEnum sendMessage(String key, String message);

    /**
     * <desc>
     *     旧版APP_远程开门发送消息到一卡通
     * </desc>
     *
     * @param key
     * @param message
     * @return
     * @author Jiaqi.X
     * @createDate 2017/12/07
     */
    Code oldSendMessage(String key, String message);



}
